﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;

namespace Itegracion.Framework.Forms
{
    public partial class fmBase : Form
    {
        public fmBase()
        {
            InitializeComponent();
        }

        protected Helper _(string assembly, string type, string method, params object[] controls)
        {
            return Helper.Instance.In(assembly, type, method, controls);
        }

        protected bool Error(Control control, string message)
        {
            tt.SetToolTip(control, string.Format(message, control.Name, control.Tag));
            ep.SetError(control, string.Format(message, control.Name, control.Tag));
            return false;
        }
    }
}
